using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using NTTHAO.Web.BL.Product;

public partial class admin_webparts_Plug_ins_Product_ProductTreeView : System.Web.UI.UserControl
{
    public DataTable _Types = null;
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            int groupID = 0;
            try
            {
                groupID = Int32.Parse(Request.QueryString["g"].Trim());
            }
            catch (Exception)
            {
                Response.Redirect("?type=invalidurl", false);
                return;
            }

            DataSet ds = ProductType.GetAllByGroup(groupID);

            if (ds != null)
            {
                _Types = ds.Tables[0];
            }
        }
        catch (Exception) { }
    }
}
